<?php
/**
* requesthsitory.php
*
* Create on 2015-7-16
* Create by LL
*/
namespace haibao\app\model\data;

class RequestHistory extends Base{
	
	/**
	 * app版本号
	 */
	const APP_VERSION = 3.0;
	
	/**
	 * 调用TOKEN
	 */
	public $Token;

	/**
	 * 访问接口秘钥
	 */
	public $Ticket;
	
	/**
	 * 访问地址
	 */
	public $Path;
	
	/**
	 * 参数值
	 */
	public $Parameters;
	
	/**
	 * 返回值
	 */
	public $ReturnData;
	
	/**
	 * 返回状态码
	 */
	public $ReturnCode;
	
	/**
	 * 耗时
	 */
	public $UsageTime;
	
	/**
	 * 访问IP
	 */
	public $IP;
	
	/**
	 * 访问日期
	 */
	public $RequestTime;
	
	public function __construct(){
		parent::__construct();

		$this->stringField('Token', 'Token');
		$this->stringField('Ticket', 'Ticket');
		$this->stringField('Path', 'Path',true);
		$this->stringField('Parameters', 'Parameters');
		$this->intField('ReturnCode', 'ReturnCode',true);
		$this->stringField('ReturnData', 'ReturnData',true);
		$this->intField('UsageTime', 'UsageTime',true);
		$this->stringField('IP', 'IP',true);
		$this->dateField('RequestTime', 'RequestTime',true);
	
		$this->setTableName('ApiRequestHistory_');
	}
}